import {DIC }from '@/const/dic.js';
export const usrCouponOption = {
    border: true,
    index: true,
    indexLabel: '序号',
    selection: true,
    columnBtn:true,
    refreshBtn:false,
    addBtn:false,
    delBtn:false,
    editBtn:false,
    menuWidth:300,
    menuAlign:'center',
    formWidth: '100%',
    align:'center',
    stripe:true,
    dicData:DIC,
    column: [
    {
                label: "编号",
                prop: "id",
                width: "150",
                fixed: true,
        hide:true,
        addDisplay:false,
        editDisplay:false,
        viewDisplay:false,
                rules: [{
                    required: true,
                    message: "请输入编号",
                    trigger: "blur"
                }]
            },
        /**店铺ID*/
        {
        label:"店铺",
        prop:"storeId",
        width:"150",
       fixed: true,
            overHidden:true,
            hide:true,
            type:"select",
            props: {
                label: 'storeName',
                value: 'id'
            },
            dicMethod:'get',
            dicUrl:"/shop/storeApply/allList",
            viewDisplay:false,
            rules: [{
                   required: true,
                   message: "店铺ID",
                   trigger: "blur"
               }]
        },
        /**用户ID*/
        {
        label:"用户",
        prop:"userId",
        width:"150",
            type:"select",
            overHidden:true,
            props: {
                label: 'userName',
                value: 'id'
            },
            dicMethod:'get',
            dicUrl:"/shop/usrUser/allList",
            editDisplay:false,
       fixed: true,
            rules: [{
                   required: true,
                   message: "用户ID",
                   trigger: "blur"
               }]
        },
        /**优惠券id*/
        {
        label:"优惠券",
        prop:"couponId",
        width:"150",
            overHidden:true,

            type:"select",
            props: {
                label: 'title',
                value: 'id'
            },
            dicMethod:'get',
            dicUrl:"/shop/couponWarehouse/allList",
            editDisplay:false,
       fixed: true,
            rules: [{
                   required: true,
                   message: "优惠券id",
                   trigger: "blur"
               }]
        },
        /**开始时间*/
        {
        label:"开始时间",
        prop:"startTime",
        width:"150",
            type:"date",
            format: 'yyyy-MM-dd',
            // addDisplay:false,
            editDisplay:false,
       fixed: true,
            rules: [{
                   required: true,
                   message: "开始时间",
                   trigger: "blur"
               }]
        },
        /**截止时间*/
        {
        label:"截止时间",
        prop:"endTime",
        width:"150",
            type:"date",
            format: 'yyyy-MM-dd',
       fixed: true,
            // addDisplay:false,
            editDisplay:false,
            rules: [{
                   required: true,
                   message: "截止时间",
                   trigger: "blur"
               }]
        },
        /**使用状态*/
        {
        label:"使用状态",
        prop:"status",
        width:"150",
            addDisplay:false,
            editDisplay:false,
            slot:true,
       fixed: true,
            dicData: DIC.COUPONSTATUS,

        },
    ]

};

